package com.campusbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统通知表
 * </p>
 *
 * @author yezi
 * @since 2025-07-29
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@TableName("system_notifications")
@Schema(name = "SystemNotification", description = "系统通知表")
public class SystemNotification implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "通知标题")
    private String title;

    @Schema(description = "通知内容（富文本HTML）")
    private String content;

    @Schema(description = "通知摘要")
    private String summary;

    @Schema(description = "浏览次数")
    private Integer viewCount;

    @Schema(description = "发布者ID（管理员ID）")
    private Long publisherId;

//    @Schema(description = "发布者姓名")
//    private String publisherName;

    @Schema(description = "状态：1-已发布，0-草稿，-1-已删除")
    private Integer status;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
